<body>
<div class=form_title><{$smarty.const.MI_SETUP_INTERFACE}></div>
<form method='post'>
<input type='hidden' name='op' value='ui_setup_modify'>
  <table width="50%" border='1' align="center" cellpadding='1' cellspacing='1' bordercolor="157fb9" class=form_detail>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_UI_SETUP_THEME}></th>
      <td> 
        <select name='theme'><{foreach from=$themes item=theme}>
          <option value='<{$theme}>'<{if $smarty.const.HLA_THEME==$theme}> selected<{/if}>><{$theme}></option> <{/foreach}>
        </select></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_UI_SETUP_LANGUAGE}></th>
      <td> 
        <select name='language' onchange='change_default_charset();'><{foreach from=$langs key=lang item=lang_name}> <option value='<{$lang}>'<{if $smarty.const.HLA_LANGUAGE==$lang}> selected<{/if}>><{$lang_name}></option> <{/foreach}>
        </select></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_UI_SETUP_OS_CHARSET}></th>
      <td> 
        <input type='text' size=50 maxlength=120 name='os_charset' value='<{$smarty.const.OS_CHARSET}>'></td>
    </tr>
  </table>  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><br>
        <input name="button" type='button' class='btn_modify' onClick='op.value="ui_setup_modify"; this.form.submit();' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_MODIFY}>" />&nbsp;<input name="button2" type='button' class='btn_uppage' onClick='location.href="<{$smarty.server.SCRIPT_NAME}>";' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_BACK}>" />
      </td>
    </tr>
  </table>
  <script>

function change_default_charset()
{
    language = document.getElementById('language').value;
<{foreach from=$langs key=lang item=lang_name}>
    if (language == '<{$lang}>')
        document.getElementById('os_charset').value = '<{$encodings.$lang}>';
<{/foreach}>
}

</script>
</form>
